﻿using System.Drawing;
using System.Windows.Forms;

namespace DataGrid.Controls
{
    /// <summary>
    /// ProgressBar表格样式
    /// </summary>
    public class DataGridViewProgressBarCellStyle: DataGridViewCellStyle
    {
        #region 定义字段

        private Color _progressBarColor = Color.Green; //进度条的默认背景颜色,绿色；
        private bool _isShowProgressText = true;       //进度条是否显示百分比文本，默认显示

        #endregion

        #region 构造方法

        public DataGridViewProgressBarCellStyle() : base()
        {

        }

        public DataGridViewProgressBarCellStyle(DataGridViewProgressBarCellStyle dgvcs) : base()
        {

        }

        public DataGridViewProgressBarCellStyle(Color progressBarColor, bool isShowProgressText, DataGridViewCellStyle dgvcs) : base(dgvcs)
        {
            this._progressBarColor = progressBarColor;
            this._isShowProgressText = isShowProgressText;
        }

        #endregion

        #region 属性定义

        public Color ProgressBarColor
        {
            get { return _progressBarColor; }
            set { _progressBarColor = value; }
        }
        public bool IsShowProgressText
        {
            get { return _isShowProgressText; }
            set { _isShowProgressText = value; }
        }

        #endregion
    }
}
